<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>确认提交订单 - VANCL 凡客诚品</title>
		<include file="__TEMPLATE__/publicCssAndJs" />
		<link rel="stylesheet" type="text/css" href="__TEMPLATE__/css/checkout.css"/>
		<script type="text/javascript">
		$(document).ready(function(){
			$("input[name='arid']").eq(0).attr("checked","checked");
			$("#orderForm").submit(function(){
				if($("input[name='arid']").length == 0){
					alert("请选择收货地址！");
					return false;
				}
			});
		});
		</script>
	</head>
	<body>
		<div class="main">
			<div id="header">
				<a href="{|U:'Index/index'}" class="logo"><img src="__TEMPLATE__/images/vancl-logo.png" /></a>
				<div class="account">
					<if value="session('uname') && session('uid')">
					<p>
						您好，
						<span>{$hd.session.uname}</span>
						<a href="{|U:'User/out'}">退出登录</a>
					</p>
					<else />
					<p>您好，<span>欢迎光临凡客诚品！</span>&nbsp;
						<span>
							<a href="{|U:'User/login'}">登陆</a>&nbsp;|&nbsp;<a href="{|U:'User/register'}">注册</a>
						</span></p>
					</if>
				</div>
			</div>
			<div id="location">
				<span><a href="{|U:'Cart/index'}">1.我的购物车</a></span>
				<em>2.填写核对信息单</em>
				<span>3.成功提交订单</span>
			</div>
			<div id="content">
				<form action="" method="post" id="orderForm">
					<div class="wrapper clearfix">    
					    <section class="order-info">
					        <div id="addr" class="addr clearfix">
					        	<div class="addr-hd inland-addr-hd addr-hd-new clearfix">
					        		<h3 class="addr-title">收货地址：</h3>
					        	</div>
								<section class="inland-addr">
									<div style="padding: 10px;">
										<if value="empty($address)">
											<p><a href="{|U:'Address/index'}">添加收货地址</a></p>
										<else />
											<foreach from="$address" key="$ark" value="$arv">
												<p><input type="radio" name="arid" value="{$arv.arid}" />{$arv.area}</p>
											</foreach>
										</if>
									</div>
								</section>
					        </div>
					        <div id="delivery" class="delivery">
					            <h3 class="delivery-title addr-hd-new">配送方式：</h3>
								<section class="inland-addr">
								    <!-- <div class="warn1">请先确认“收货地址”</div> -->
								    <div style="height: 100px;padding: 10px;">
								    	<p><input type="radio" name="sendtype" value="1" checked="checked" />凡客</p>
								    	<p><input type="radio" name="sendtype" value="2" />顺风</p>
								    </div>
							        <li class="delivery-explanation clearfix"><em>声明：</em>
							            <div>
							                <p>1.&nbsp;<a class="oprate" target="_blank" href="http://help.vancl.com/category/transfer">查看货到付款配送范围</a></p>
							                <p>2.&nbsp;送货时间：早 8:30至 晚7:30</p>
							                3.&nbsp;我们会努力按照您选择的时间进行配送，但因天气、交通等因素影响，您的订单有可能会有延误现象，请您谅解！
							            </div>
							        </li>
								</section>
								<span class="clear"></span>
					        </div>
					        <div id="pay" class="pay noborder clearfix">
				                <div class="pay-hd pay-title" style="width: 140px;">
				        			<h3 class="pay-title">支付方式：</h3>
				                </div>
				                <!-- <span class="no-addr-or-delivery-error warn1" style="margin:20px 0 10px 80px">请先确认“收货地址”或“配送方式”</span> -->
				                <div style="float: left;padding: 10px;">
				                	<p><input type="radio" name="paytype" value="1" checked="checked" />在线</p>
								    <p><input type="radio" name="paytype" value="2" />货到付款</p>
				                </div>
					        </div>
					        <div class="pay noborder clearfix">
				                <div class="pay-hd pay-title" style="width: 140px;">
				        			<h3 class="pay-title">订单备注：</h3>
				                </div>
				                <div style="float: left;padding: 10px;">
				                	<textarea rows="10" cols="100" name="oremark" style="margin-top: 100px;"></textarea>
				                </div>
					        </div>
					    </section>
					    <div id="order-info-panel">
					    	<div id="all-tips" data-tips=""></div>
							<!--订单显示-->
							
							<div class="order-info-head">
							    <h3 class="clearfix">
							        <span class="order-list-title">商品清单</span>
							        <a name="sp_cart_gift_back_cart" class="back2cart track" href="{|U:'Cart/index'}">回到购物车，修改产品&gt;&gt;</a>  
							    </h3>
							</div>
						    <div class="order-list order-list2 clearfix">
					            <table>
					                <thead>
					                    <tr>
					                        <th>商品名称</th>
					                        <th>规格</th>
					                        <th>单价</th>
					                        <th>数量</th>
					                        <th>小计</th>
					                    </tr>
					                </thead>
					                <tbody>
					                	<foreach from="$cartData['goods']" key="$cdk" value="$cdv">
					                    <tr>
					                        <td class="name"><a target="_blank" href="{|U:'Content/index',array('gid'=>$cdv['gid'])}" title="{$cdv.name}">{$cdv.name}</a></td>
					                        <td class="size">{$cdv.attrs}</td>
					                        <td class="price">￥{$cdv.price}</td>
					                        <td class="qty">{$cdv.num}</td>
					                        <td class="sub-total">￥{$cdv.total}</td>
					                    </tr>
					                    </foreach>
					                </tbody>
					            </table>
					            <div class="order-amount">
					            	商品金额小计:<span>￥{$cartData.total}</span>
					            	&nbsp;&nbsp;应付:<em>￥{$cartData.total}</em>
						        </div>
						    </div>
							<ul class="all-amount">
							    <li><em>您需支付：<label id="price-total">￥{$cartData.total}</label></em></li>
							</ul>
							<div class="order-submit clearfix">
							    <input id="submit-order-btn" value="提交订单" class="submit-order-btn track" type="submit" />
							</div>
						    <!--特惠品移除提示-->
					    </div>
					</div>
				</form>
			</div>
		</div>
		<div class="copyRight">
			<div class="copyRightTab"><p>Copyright 2007 - 2014 vancl.com All Rights Reserved 京ICP证100557号 京公网安备11011502002400号 出版物经营许可证新出发京批字第直110138号</p></div>
		</div>
	</body>
</html>
